package com.itheima.practice.demo01;


public class StringTest {
    public static void main(String[] args) {
        String str = "91 27 46 38 50";
        String[] strings = str.split(" ");
        int[] num = new int[strings.length];

        for (int i = 0; i < strings.length; i++) {
                int number = Integer.parseInt(strings[i]);
                num[i] = number;
        }

        for (int i = 0; i < num.length; i++) {
            System.out.println(num[i]);
        }
    }
}
